package edu.gdit.health.service.impl;

import edu.gdit.health.dao.TemperatureStatisticsDao;
import edu.gdit.health.model.TemperatureStatisticsModel;
import edu.gdit.health.service.TemperatureStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lemon-7
 * @create 2021-05-15 10:08
 */
@Service
public class TemperatureStatisticsServiceImpl implements TemperatureStatisticsService {
    @Autowired
    TemperatureStatisticsDao temperatureStatisticsDao;

    @Override
    public List<TemperatureStatisticsModel> getStatistics() {
        return temperatureStatisticsDao.getStatistics();
    }
}
